# example8_9.py

from ch08.example8_8 import Bus
import copy

if __name__ == '__main__':
    bus1 = Bus(['Alice', 'Bill', 'Claire', 'David'])
    bus2 = copy.copy(bus1)
    bus3 = copy.deepcopy(bus1)
    a, b, c = id(bus1), id(bus2), id(bus3)
    print(a, b, c)
    bus1.drop('Bill')
    print(bus2.passengers)
    a, b, c = id(bus1.passengers), id(bus2.passengers), id(bus3.passengers)
    print(a, b, c)
    print(bus3.passengers)





